package com.client.dao;

import com.client.pojo.Comments;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;

/**
 * <p>
 * 评论系统表 Mapper 接口
 * </p>
 *
 * @author ckick
 * @since 2025-09-20 08:28:54
 */
public interface CommentsDao extends BaseMapper<Comments> {
    //根据词条id获取父级评论和对应的用户信息,同时实现分页
    List<Comments> getCommentsByEntryId(Integer entryId, Integer offset, Integer limit);
    //根据评论id获取子评论列表
    List<Comments> getChildrenByCommentId(Integer commentId, Integer offset, Integer limit);
}
